package com.khactho.beginningandroidgame;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
import android.util.Log;


public class LifeCycleTest extends Activity 
{
	StringBuilder builder = new StringBuilder();
	TextView textView;
	private void Log(String text)
	{
		Log.d("LifeCycleTest",text);
		builder.append(text);
		builder.append("\n");
		textView.setText(builder.toString());
		
	}
	@Override
	protected void onCreate(Bundle saveInstanceState)
	{
		super.onCreate(saveInstanceState);
		textView = new TextView(this);
		textView.setText(builder.toString());
		setContentView(textView);
		Log("created");
		
		
	}
	@Override
	protected void onPause()
	{
		super.onPause();
		Log("Paused");
		if(isFinishing())
			{
				Log("Finishing");
			};
	}
	@Override
	protected void onResume()
	{
		super.onResume();
	}
	
}
	


